﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MoneyProtocol.dto
{
    [Serializable]
    public class StockInfoDTO
    {
        /// <summary>
        /// 股票交易记录ID
        /// </summary>
        public int id;
        /// <summary>
        /// 所属证券账号ID
        /// </summary>
        public int security_account_id;
        /// <summary>
        /// 交易日期
        /// </summary>
        public string date;
        /// <summary>
        /// 交易类型，即买入或者卖出
        /// </summary>
        public string trade_type;
        /// <summary>
        /// 股票名
        /// </summary>
        public string stock_name;
        /// <summary>
        /// 股票代码
        /// </summary>
        public int stock_code;
        /// <summary>
        /// 买入或者卖出金额
        /// </summary>
        public float price;
        /// <summary>
        /// 买入或者卖出数量
        /// </summary>
        public int stock_num;
        /// <summary>
        /// 交易收取费用
        /// </summary>
        public float fee;
        /// <summary>
        /// 备注说明
        /// </summary>
        public string remark;

        public StockInfoDTO() { }

        public StockInfoDTO(int id, int security_account_id, string date, string trade_type, string stock_name, int stock_code, float price, int stock_num, float fee, string remark)
        {
            this.id = id;
            this.security_account_id = security_account_id;
            this.date = date;
            this.trade_type = trade_type;
            this.stock_name = stock_name;
            this.stock_code = stock_code;
            this.price = price;
            this.stock_num = stock_num;
            this.fee = fee;
            this.remark = remark;
        }
    }
}
